const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
        '/api': {
            target: 'http://127.0.0.1:8080',
            ws: true,//是否代理websockets
            changeOrigin: true, // 设置同源  默认false，是否需要改变原始主机头为目标URL
            pathRewrite:{
                '^/api':''
            }
        }
    }
}
})
